module.exports = function(sequelize, DataTypes) {
  return sequelize.define('choiceUserToken', {
    token: {
      type: DataTypes.STRING,
      primaryKey: true,
      allowNull: false
    },
    name: {
      type: DataTypes.STRING,
      field: 'name',
      allowNull: false
    },
    password: {
      type: DataTypes.STRING,
      field: 'password',
      allowNull: false
    },
    roles: {
      type: DataTypes.STRING,
      field: 'roles',
      allowNull: false
    },
    createAt: {
      type: DataTypes.DATE
    }
  },
  {
    tableName: 'choice_user_token'
  })
}
